package com.my.hbase.demo;

import com.my.hbase.orm.Model;
import com.my.hbase.util.HBaseColumn;
import com.my.hbase.util.HBaseTable;
import com.my.hbase.util.HBaseUtil;

/**
 *  实体类
 */
@HBaseTable(tableName = "user", families = "user")
public class User {

    @HBaseColumn(rowkey = true)
    private String rowkey;

    @HBaseColumn(family = "user", qualifier = "userName")
    private String userName;

    @HBaseColumn(family = "user", qualifier = "age")
    private int age;

    @HBaseColumn(family = "user", qualifier = "createTime")
    private long createTime;


    public String getRowkey() {
        return rowkey;
    }

    public void setRowkey(String rowkey) {
        this.rowkey = rowkey;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }
}
